package me.lc.superDown.sprite;

import com.wiyun.engine.nodes.Node;
import com.wiyun.engine.nodes.Sprite;
import com.wiyun.engine.types.WYPoint;

/**
 * 游戏道具基类
 * 
 * @author Administrator
 * 
 */
public abstract class GameTool extends Node {

	protected Sprite toolSprite;
	protected Object syncObj = new Object();
	
	public boolean isHited = false;

	public GameTool() {
		createToolSprite();
		this.addChild(toolSprite);
	}

	protected abstract void createToolSprite();

	public abstract float getToolWidth();

	public abstract float getToolHeight();

	// /**
	// * 是否碰到了道具
	// *
	// * @param point
	// * @return
	// */
	// public abstract boolean isHitTool(WYPoint point);

	/**
	 * 碰到道具动作
	 */
	public abstract void hitTool();

}
